<include file="Public/head" title="我的车库"/>
<div class="index_top clear">
    <a href="javascript:;" onclick="history.go(-1)" class="l Return"><i class="iconfont icon-iconfontfanhui"></i></a>
    <a href="{:U('Bike/turn_log')}" class="r Sever"><i class="iconfont icon-yiwancheng1"></i></a>
</div>
<div class="main">
    <div class="order_mange">
        <!--无内容   移除类名hide-->
        <if condition="$list eq null">
        <div class="content_empty">
            <img src="__PUBLIC__/home/image/icon3.png" alt="">
            <div class="title">亲，您暂时还没有订单哦~~</div>
            <div class="con">赶快去<a href="{:U('Index/index')}">商城逛逛</a>吧~~</div>
        </div>
        
        <!--无内容-->
        <else/>
        <div class="content_show">
            <!--退货-->
            <foreach name="list" item="val">
            <div class="module_order">
                <div class="title">车辆编号：<i>{$val.number}</i>
                    <span><if condition="$val.status eq '3'">出让中<else/>使用中</if></span>
                </div>
                <div class="content">
                    <div class="warp clear">
                        <div class="left" style="background-image: url({:$val['goods_pic']})"></div>
                        <div class="right">
                            <div class="r_h1">{$val.goods_name}</div>
                            <div class="h3">{:cut_str($val['goods_profile'],20)}</div>
                            <div class="money_black"><i class="iconfont icon-jiage-copy"></i><span>{$val.goods_price}</span><em>x{$val.order_num}</em></div>
                            <div class="color">颜色： {$val.goods_spec}</div>
                        </div>
                    </div>
                </div>
                <div class="bottom">合计&nbsp;<i class="iconfont icon-jiage-copy"></i><span>{$val.order_price}</span>
                	<if condition="$val.status neq '3' and $val.service eq '3'">
                    <div class="btn"><a href="{:U('Bike/turn_info',array('bike_id'=>$val['id']))}">我要出让</a></div>
                    </if>
                    <div class="btn_false"><a href="{:U('Bike/bike_detail',array('id'=>$val['id']))}">车辆详情</a></div>
                </div>
            </div>
        	</foreach>
        </div>
        </if>
        <div class="empty"></div>
    </div>
<!--     <a href="{:U('Bike/add')}" class="fiexd_button">添加车辆</a> -->
</div>
<include file="Public/foot"/>